package pixelwaks.core.impl;


public class Wind {

	private double level;
	private double windSpeed;
	private int direction;
	
	public enum Difficulty {
		
		EASY(0.0), MEDIUM(2.0), HARD(6.0);		
		private final double value;
		
		Difficulty (double value) {
			this.value = value;
		}
		
		public double value() {
			return value;
		}
	}	
	
	public void setLevel(Difficulty level) {
		this.level = level.value;
	}
	
	public double getLevel() {		
		return level;
	}
	
	public void setWindSpeed(double d) {
		windSpeed = d;
	}
	
	public double getWindSpeed() {
		return direction == 0 ? -windSpeed : windSpeed;
	}
	
	public void setDirection(int i) {
		direction = i;
	}
}
